<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div>{{msg}}</div>
        <div>{{number+1}}</div>
        <div>{{flag?'ok':'no'}}</div>
        <div>{{message.split('').reverse().join('-')}}</div>
        <!-- v：bind -->
        <!-- 如果属性的值是变量，就需要用v-bind绑定属性 -->
        <div :id="'list'+id">111</div>
        <div :id="`list-${id}`">222</div>
    </div>
</body>
<script src="./lib/vue.global.js"></script>
<script>
    const {createApp,ref}=Vue
    createApp({
        data() {
            return {
                msg:'屋里撒浪哈吉麻辣油',
                number:10,
                flag:true,
                message:'啊几根',
                id:01
            }
        },
    }).mount('#app')
</script>
</html>